import request from '@/utils/request'

/**
 * 搜索 - 搜索联想建议接口
 * @returns Promise 对象
 */
export const searchSuggestionAPI = (q) => request({
  url: '/v1_0/suggestion',
  params: {
    q
  }
})

/**
   * 搜索 - 获取搜索结果接口
   * @returns Promise 对象
   */
export const getSearchAPI = (obj) => request({
  url: '/v1_0/search',
  params: {
    page: 1,
    per_page: 10,
    ...obj
  }
})
